﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Threading.Tasks;
using System.Web;
using System.Web.Mvc;

namespace SE.App.Controllers
{
    /// <summary>
    /// Controller for initial views
    /// </summary>
    public class PortalController : AsyncController
    {
        public async Task<ActionResult> Index()
        {
            ViewBag.Title = "Shared Engine!";
            ViewBag.Message = "Your Enterprise Widget-like Sharepoint Portal!";
            //var client = new HttpClient();
            //var response = await client.GetAsync(Url.Action());


            return View();
        }

        public async Task<ActionResult> About()
        {
            ViewBag.Title = "About Shared Engine!";
            ViewBag.Message = "What is Shared Engine Portal Services?";

            return View();
        }

        public async Task<ActionResult> Contact()
        {
            ViewBag.Title = "Contact Information";
            ViewBag.Message = "Shared Engine Contact";

            return View();
        }

        public async Task<ActionResult> Services()
        {
            ViewBag.Title = "Services Information";
            ViewBag.Message = "Shared Engine Services";

            return View();
        }

        public async Task<ActionResult> Tools()
        {
            ViewBag.Title = "Tools to configure Services";
            ViewBag.Message = "Shared Engine Tools";

            return View();
        }

        public async Task<ActionResult> Gallery()
        {
            ViewBag.Title = "Widgets Gallery";
            ViewBag.Message = "Shared Engine Widgets Gallery";

            return View();
        }
    }
}
